<!DOCTYPE html>
<html lang="en">
<head》
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>HTML5敲击乐</title>
  <link rel="stylesheet" href="./style.css">
</head>
<body>
  <div class="keys">
    <!-- dom 上添加一个数据属性 -->
    <div class="key" data-key="65">
      <h3>A</h3>
      <span class="sound">clap</span>
    </div>
    <div class="key" data-key="83">
      <h3>S</h3>
      <span class="sound">hihat</span>
    </div>
    <div class="key" data-key="68">
      <h3>D</h3>
      <span class="sound">kick</span>
    </div>
    <div class="key" data-key="70">
      <h3>F</h3>
      <span class="sound">openhat</span>
    </div>
    <div class="key" data-key="71">
      <h3>G</h3>
      <span class="sound">boom</span>
    </div>
    <div class="key" data-key="72">
      <h3>H</h3>
      <span class="sound">ride</span>
    </div>
    <div class="key" data-key="74">
      <h3>J</h3>
      <span class="sound">snare</span>
    </div>
    <div class="key" data-key="75">
      <h3>K</h3>
      <span class="sound">tom</span>
    </div>
     <div class="key" data-key="76">
      <h3>L</h3>
      <span class="sound">tink</span>
    </div>
  </div>
  <script src="./script.js"></script>

</body>
</html>
